This function will encrypt the specified string and
return the encrypted string. This function has three arguments. The
first one is the text that you want to encrypt. The second one is
the password that you want to use for the encryption and the third
and last one is which algorithm you want to use. All six algorithms
that are supported by TUGZip are of course supported here as well.
Algorithms:
0 = Blowfish (128-bit)
1 = DES (56-bit)
2 = TripleDES (168-bit)
3 = Rijndael (128-bit)
4 = Rijndael (192-bit)
5 = Rijndael (256-bit)
Example:
function
main()
{ var Encrypted;
Encrypted = EncryptStr("This
is a string.","MyPassword",5);
MessageBox(Encrypted,"Encrypted
String",0,0);
}